<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加图书</title>
</head>
<body>
<form id="form" method="post" action="/insertServlet">
    <table align="center" width="450" border="10">
        <tr>
            <td align="center" colspan="2">
                <h2>添加图书信息</h2>
                <hr>
            </td>
        </tr>
        <tr>
            <td align="right">图书名称:</td>
            <td><input type="text" name="name"></td>
        </tr>
        <tr>
            <td align="right">价　格：</td>
            <td><input type="text" name="price"></td>
        </tr>
        <tr>
            <td align="right">数　量</td>
            <td><input type="text" name="amount"></td>
        </tr>
        <tr>
            <td align="right">作　者</td>
            <td><input type="text" name="author"></td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <input type="submit" value="添加">
            </td>
        </tr>
    </table>
</form>

<input type="button" value="返回首页" onclick="location.href='/index.jsp'" style="position: absolute;bottom: 20%;left: 45%;">
</body>
</html>